#
# Be sure to run `pod lib lint CMKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'IMILabKit'
  s.version          = '0.1.3'
  s.summary          = '创米组件库.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
所有需要用到的组件都作为子组件存在于组件库中, 使用时按需引用.
                       DESC

  s.homepage         = 'http://dev.imilab.com:14847/chuangmiapp/imilab-sdk-ios'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'zrf' => 'zhourongfeng@imilab.com' }
  s.source           = { :git => 'git@dev.imilab.com:222/chuangmiapp/imilab-sdk-ios.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'
  s.static_framework = true

#  s.source_files = 'CMKit/Classes/**/*'

  #  基础组件
      s.subspec 'Base' do |base|
          base.source_files = 'IMILabKit/Classes/Base/**/*'
        #需要在podfile中加入source 'https://github.com/aliyun/aliyun-specs.git' / source 'http://repo.baichuan-ios.taobao.com/baichuanSDK/AliBCSpecs.git'

          base.dependency 'IMSApiClient'
          base.dependency 'IMSAuthentication'
          base.dependency 'IMSIotSmart'
          base.dependency 'AlicloudSecurityGuardSDK'
          base.dependency 'AlicloudSGSecurityBody'
          base.dependency 'AlicloudSGMain'
          base.dependency 'AlicloudALBBOpenAccount'
          base.dependency 'AlicloudPushIoT'
          base.dependency 'IMSPCloudPush'
          base.dependency 'IMSPCloudNetwork'
          base.dependency 'IMSThingCapability'
          base.dependency 'IMSMobileChannel'
          base.dependency 'IMSBoneKit'
          base.dependency 'AKReactNative'
          base.dependency 'MJRefresh'
          base.dependency 'ZipArchive'
          base.dependency 'IMSReactNativeExtension'
          base.dependency 'IMSDeviceCenter', '1.12.11'
          base.dependency 'CocoaAsyncSocket'
          base.dependency 'Reachability'
          base.dependency 'IMSBreezeSDK'
          base.dependency 'IMSOtaBusinessSdk'
          base.dependency 'IMSDeviceGateway'
          base.dependency 'MBProgressHUD'
          base.dependency 'AFNetworking'
          
          base.resources = ['IMILabKit/Assets/**/*.{xcassets}']
      end
#  本地日志输出组件
      s.subspec 'Log' do |log|
        log.source_files = 'IMILabKit/Classes/Log/**/*'
        log.dependency 'CocoaLumberjack', '3.6.1'
      end
#  国际化组件， 所有组件中的国际化在此组件中管理
  s.subspec 'Localize' do |loc|
    loc.source_files = 'IMILabKit/Classes/Localize/**/*'
    loc.resources = ['IMILabKit/Assets/**/*.{lproj}']
    loc.dependency 'IMILabkit/Log'
  end
#  网络组件
  s.subspec 'Net' do |net|
      net.source_files = 'IMILabKit/Classes/Net/**/*'
      net.dependency 'Alamofire'
      net.dependency 'LSTools'
  end
#  公共组件。跨组件通讯使用，根据实际业务封装. 如子组件独立引用，必须引入Net
    s.subspec 'Common' do |common|
      common.source_files = 'IMILabKit/Classes/Common/**/*'
      common.dependency 'LSTools'
      common.dependency 'IMILabKit/Net'
    end


  
  # s.resource_bundles = {
  #   'CMKit' => ['CMKit/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
